import request from "@/utils/request";

//账户登录,获取token信息
export function login(account, password) {
  return request({
    url: "/passport/sign_in",
    method: "post",
    data: {
      username: account,
      password: password
    }
  });
}

//通过token获取身份信息
export function getIdentity() {
  return request({
    url: "/passport/identity",
    method: "post"
  });
}
